export default {
    saveNewUnsettledOrder(state, order) {
        state.Unsettled.push(order)
    },
    //倒计时订单失效时间
    updateUnsettledTime(state) {
        state.Unsettled.forEach(order => {
            order.validTime = order.validTime - 1
            if (order.validTime === 0)
                state.Unsettled.shift()
        })
    }
}